<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>

<script>
var a=1;
function fn2(){
	alert(a);
	a=2;
}
fn2();
alert(a);
</script>

</body>
</html>
